Implement rollover

For files larger then the configured blksize, we do a rollover once we reach 2^16 number of blocks.
Added tests for rolover