Control of weld distortion through in-situ preheating of weld filler wire