"Balance of Terror" was essentially "The Enemy Below" set in outer space ...
They did a nice job adapting that script for Star Trek.