If you're vomiting a lot it may just be that you've caused a small tear hence the blood. But either way you really need to see a doctor about that incase it's something else!
If you're throwing up blood you probably need to go to the hospital. You're probably dehydrated hun. I threw up everyday at least 2 times until I was 28 weeks, and was in the hospital 5 times for dehydration. Dehydration can lead to preterm labor, which is no good at 23 weeks. If you don't want to go in right away I'd call your dr and see what they say to do.