Stabilization of laser intensity and frequency using optical fiber