freeBlocks
Removes the given number of int blocks from the buffer if possible.
Return
the number of actually removed buffers
Parameters
num
the number of int blocks to remove
Removes the given number of int blocks from the buffer if possible.
the number of actually removed buffers
the number of int blocks to remove