adding printf on block_alloc and mem_alloc