Mark Allen was frustrated with himself as he broke into the World Snooker Championship's last 16 at the Crucible.