allocate_block and free_block for bitmap