add buffered write file in windows platform