add writeType in WriteStmtNode