Add Block Fixes

In add_block():
- Freed any allocated blocks upon EIO failure.
- Addressed compiler warnings.
Implemented Remove Block Function

Implemented remove_block().