West Ham manager Sam Allardyce said he was shocked to be booed by fans at full time, after his side won 2-1 against Hull.