A Barnoldswick headteacher has said “our children never cease to amaze me” after his school was praised at an Ofsted inspection.