Reuse allocated memory

Allocated blocks are not freed when the LSM shrinks yet.
Optimizations: Don't iterate block in set_unused()