Allegri glad of hard-fought points