raft: fix memoryStorage append