stream_seg: allow truncate() to enlarge stream as well as shrink it