add append for writer

Add support for append in write.
but it seems some format difference here.