fix(write): Make it write the output to dest, not src