I got stung by this before, car was written off, insured at market value, and because I paid my premiums monthly, the remaining amount of premium till my policy anniversary was taken off the payout as well.
Now I insurer for agreed value and have my ute insured for $1,000 more than it's worth to cover this sort of stuff if it where to happen again.