Optical waveguide in or on flying head