Fixed key bug in allocate_block

Fixed two key bugs in allocate_block (and similar functions): one that
only looked a the first 32 blocks (all allocated) and another that
reversed the bitmapping of free/allocated blocks.

Now passes 17/17 every time. Hard and symbolic links still to come.