Buffy writer to pen an episode