West Ham manager Sam Allardyce felt striker Andy Carroll was the difference as his side beat Swansea.