Write ack and  error handling case; writing attempt returns 'permission denied'