Robert Baloucoune's brace of tries saw Ireland seal a huge 20-17 victory against South Africa in the Nations Championship.