First, you cannot export your wealth without running out of it.
A second, and more important point, is that you are assuming trade is fair. It is not. Other countries, including good allies, play games with us all the time. For example, I can name Asian countries that grossly limit our imports because they declare all US products to be unsafe.
The only way to deal with that is to adjust tariffs until trade evens out.
Free Trade is an ideal, but we shouldn’t have Free Trade at all costs.