To stop throwing up blood she just needs to stop throwing up! To a bulimc this is really hard but with therapy and support she can do it. She is probably bleeding from esophageal tears which will heal with scarring when she ceases to continue with bulimic behavior.
She needs to go and see someone professional if she is not already and get some help, throwing up blood is serious.