Fixed bug in detecting data sectors (thanks to Nable on osdev.org)