While the acid-base reaction would be very fast, it would be in equilibrium. Amides can be considered acidic, pKa ≈ 17, water is more acidic, pKa = 15.6. The values are close enough that a portion of the amides will be deprotonated, but in protic solvents the solvent can help facilitate the fast proton exchange and stabilize the amide, even as a negative ammonia leaving group during hydrolysis. Another important point is the final product of the carboxylic acid would be deprotonated in the basic solution, which would prevent the back reaction of the aminolysis, also driving the reaction forward.