[writeboost] fix: u64 cast places wrongly

u64 cast is needed to cast sector_t to u64 that is feeded into
cpu_to_le64. In this case the output of calc_cache_alignment()

Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>
Merge pull request #3 from akiradeveloper/feature/fix-u64-cast

[writeboost] fix: u64 cast places wrongly
[writeboost] fix: kfree(buf) places wrongly

In format_all_segment_headers(), the buffer is freed
although the buffer is still used.

Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>
Merge pull request #4 from akiradeveloper/feature/fix-free-in-segment-format

[writeboost] fix: kfree(buf) places wrongly