Of course it isn't broken, there is no spring return in a deadbolt. Common sense man, turn it back.

You didn't need to pick the lock anyway. Two words: master key. All you had to do was ask whoever is in charge of the building, and they would have allowed you to go in and get whatever it was under supervision. You're registered as a student there, so they will have no problem doing this for you. What was in there that you needed so badly anyway? I guess if there was an orgy going on and you couldn't get in because nobody could hear you knocking on the door, you wouldn't want the janitor to see... but apart from that

On a serious note, you could have gotten into a lot of trouble if someone saw you... saying it's your friends room and he said you could pick the lock while he was away isn't gonna cut it. You'd still get punished for doing it, and not only that, but any time something goes missing without explanation, who do you suppose they'd think of first? Come on man, try and be a bit more responsible in future... we get a bad enough rep as it is.

If your friend is locked out of his house, and there is no other way in, by all means. But in a college/university/workplace, there is no need. There is someone there who is paid to help people out with things like that.