Corrected invalid return value being returned from wn_write when successful.