Debts must first be taken from the wealth of the deceased before any distribution takes place. After that, we execute his will if he had donated anything out of his 1/3.
After that, whatever remains is distributed among the heirs in accordance to the Quran and sunnah.