This is because some versions of write, apparently including that one,
support shell escapes for the user typing into them.
RTFM. :-)
Now, if write is installed setgid tty (as is customary, though I don't
know about AIX) it'd be interesting to know if the resulting shell
inherited group tty or not.
 > I think this is not related to the "writesrv" bug described in IX69168
 > (a buffer-overflow-based root exploit in "writesrv", the daemon for
 > handling "write" requests).
Off-topic: does anyone have documentation of the network protocol AIX
write uses? Reply in private mail...
--
   - David A. Holland             |    VINO project home page:
     dholland@eecs.harvard.edu    | http://www.eecs.harvard.edu/vino