KNOW THE STAR, KNOW THE PLANET. V. CHARACTERIZATION OF THE STELLAR COMPANION TO THE EXOPLANET HOST STAR HD 177830