l_write routine returns error not a char *