WOFS cleanup

- break out sector range erasing into separate function
- add cleanup phase to clear newly unused sectors
- address compiler warnings