added missing i/o objects, added segment writing

Added the I/O object files that were missed. Implementeded segment writing to
output for writing from parts of files. Added an I/O object for a segment
write.