Sounds to me like that isn't the kind of "friend" I would want & probably much better off with him blocking you. Sounds like your job was more criticizing his failings & immarurity. Maybe he wants to just be that way & didn't appreciate your criticism.
Sounds like you are better off without his life drama & he will be happier without your criticism of it. Sounds like it was a pretty dysfunctional "friendship" from what you describe