I'm a female, and i would have done the same thing. still though, i don't understand why you're complaining when you let these people get involved in your life in the first place.
i wouldn't have let her come and stay at my house, especially with the way her situation is. it's too much drama. I'm sorry she had a baby with her, but there's only so much you can do for a person. the baby, nor the woman, is your responsibility. your friend isn't either. he was bold to think he can invite someone to stay with him when he's living in another persons house.