I am not as harsh on this guy as Jespah is (although I agree with where she ends up).
He thought the relationship was one thing. You told him that it was another. If I am reading this correctly, he backed off fairly quickly when you made it clear that you didn't want to have sex. This was the right thing for him to do.
He ended it when he figured out this relationship was not what he wanted. This is a fairly typical sequence of events in dating. He blocked you because he is ending a relationship that he doesn't think will ever work.
You will likely be on the other side of this interaction as you date... where you leave a relationship abruptly when you find out it isn't what you want. I have been abruptly dropped, and I have left relationships that I didn't think would work.
I think we all agree that it was good you didn't have sex with this guy. You weren't both in the same place. Learn from it whatever you can, and move on.
Relationships work best when both people are in similar places in life and want the same things in a relationship. Not all relationships will ever work.