write multiple entries with a buffered io