fixed bitmap allocation bugs

There were some bugs in bitmap allocation (mark blocks in cache)

- first byte was always filled from first bit till the end
- last byte was never filled