fix spell of rewrite in aof.c

Fix two spell bugs about "rerwite" to "rewrite" in aof.c