Allegri admits to offside goal