Sounds like this is a two story single family residence.
Dryer venting in wall ducting is permitable up to 35 feet, less 5 feet for every elbow. We suggest, the shortest distance with the least amount of ells, and a termination that is not near a door, window or AC compressor.
Code does not allow you to vent into the garage. Has to terminate outside somewhere.
By a "LintEater" at home depot, Amazon or Lowes for $30. They are great. Consider leaving the termination where it is. If the run is under 35 feet and super clean, it should be fine, unless you are unhappy with the exhaust fumes at the balcony.