I hope your problem has been resolved already, but if not then I hope I can help. I think you need to talk to someone in school about this, like a guidance counselor or a teacher. This guy shouldn't be hitting you or abusing you in anyway, regardless of what he may feel about gay people. Are you out to your parents? Have you talked to them about what he is doing to you? I'm really concerned about how he is doing to you because no one has any right to harm you!
As to your problem with not being able to fall out of love with him, you will eventually. I know it may seem like the end of the world, but trust me it's not. It may hurt right now, but eventually you'll forget about him. I think he doesn't deserve to have a person like you as a friend because he doesn't realize how great you are.
Try and avoid him and don't attempt to get him to agree to be friends with you. He's closeminded and not worth your time.
The main thing is GET HELP. It can be from someone in or outside of school, but this abuse needs to stop!