This is a tough situation. The HR route clearly didn't go in your favor. Have you tried urinating in some of your boss's plants or leaving a piece of your crap under their chair. Obviously the high route didn't take place, but vengeance could be cathartic for you.
Seriously though, could you have an open/civil discussion with your boss on how to improve your work on this project. Sometimes cowboying up and getting the job done is all that any of us can do.