The actress, who wrote this week’s new episode, also reflects on why the ABC comedy continues to resonate after more than 100 episodes