Search for gravitational waves associated with γ-ray bursts detected by the interplanetary network