Of course you werent wrong! You cant blame yourself for what happens when you are getting raped. Plenty of people dont fight back, even in the stereotypical attacker from the bushes situation. But your situation is even more confusing especially in the moment. You just woke up and its a guy you liked..its hard to figure out what to do. Its also a lot harder when you know the person to figure out how to handle it. No matter what you chose to do in that situation, you made a perfectly fine choice.
I did the same thing when the guy who raped me did it, only I most certainly didnt like him, but he was a close person to our family and I just let it happen instead of fighting back. I struggled with that for a long time but just like with you, its not the wrong choice at all.
Being raped brings on a lot of horrible emotions, feeling sick with yourself, the situation, feeling weak, ashamed, confused all sorts of things. Try not to put any of it on yourself. The only one who made the wrong decision is that guy, and Im so sorry that he did that to you.