Even if his contract stipulated that he owned the website due to nonpayment, I seriously doubt that it's legal for him to put up "This company sucks" at that company's domain and with that company's logo. And this is in the UK which has (I believe) notoriously stringent defamation and libel laws.
The problem is that they didn't pay for the building. If they had paid for it, he wouldn't have demolished his own building.
Just because you ask someone to do something for you doesn't mean that you have to do it. In this case, someone asked the web developer to build a website. Instead of doing that, he just made a "this person sucks" website instead. A great business move, perhaps not, but legally questionable? Also not.