He's right. Possession is not 9/10ths of the law. It is better than many things, but it is not better than ownership. Your friend owns the laptop, and you cannot sell it against his wishes.
That said, he owes you a legitimate debt. I'm sure you two reasonable people can work something out.