Inertial effects in small-amplitude swimming of a finite body