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.
This is changed because we need to write 0 into log, and don't want to check `unstable > offset`