Yes, you are right. The smaller ball's direction was changed by the distortion of space-time by the heavier ball. Something similar happens when it is a beam of light passing through the same path: the direction of the light changes in the vicinity of the heavy object, making a distant observer to have a wrong view of the position from whence the light came much like a lens would. This phenomenon is called Gravitational Lensing
Thank you for your support.