fix(raft/log): truncate file and reset offset correctly
Merge pull request #830 from unihorn/98

fix(raft/log): truncate file and reset offset correctly