Fix res.end patch to call correct upstream res.write

fixes #72