The dream is showing a process of emotions being cleansed relating to your past and current relationship. Have you recently been working on feelings or thoughts relating to your ex?
Is there any reason you may be thinking about it? Such as something that has reminded you of him? Can I ask if you believe In God?
If this is not the case then he is most likely symbolic. Meaning he can represent a few different things in your dream. Your old ways of doing things in a relationship, the past, or depending on how you view him and what the cause was to the end of your relationship. He can also represent certain perspectives, view points or characteristics. Since your current boyfriend was in the dream. The dream can be showing how you are cleansing this from your relationship with your current boyfriend. With this female friend also being in the dream can represent the same thing. Hair in dreams usually represents our current wisdom. Since her hair is falling out, you are loosing this "old wisdom" and are replacing it with new wisdom in your current relationship.
Your very welcome.