fixed bug in free to avoid freeblock crash and added method to visualize freeblock list