add buffer writer for bufferd file write.