added block allociation in get_block_num and fixed indirect blocks support
merged