raft: write entry 0 into log

#1033 #1045 
I will do entry write check (including always write entry 0 as the first one),
and load last written entry in snapshot
in following PRs.
I think the comment should be:
```
// TODO(unihorn): remove this when cut can operate on an empty file
```