That looks good I think. Here's the original for reference:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# USB RNDIS gadget (Windows / Linux compatible)
auto usb0
iface usb0 inet static
address 192.168.6.2
netmask 255.255.255.0
network 192.168.6.0
# USB NCM gadget (macOS / Linux compatible)
auto usb1
iface usb1 inet static
address 192.168.7.2
netmask 255.255.255.0
network 192.168.7.0
# The loopback network interface
auto lo
iface lo inet loopback
# Ethernet
allow-hotplug eth0
iface eth0 inet dhcp
# Example to keep MAC address between reboots
#hwaddress ether DE:AD:BE:EF:CA:FE
# WiFi Example
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
# The lines above should work if you have a wifi interface called wlan0.
# To see the actual name of your interface, run
# ip a
# and identify it among the ones listed then replace `wlan0` above with the name of your interface
# To provide credentials to your network, run the following at the command line:
# wpa_passphrase YourNetworkName YourNetworkPassword >>/etc/wpa_supplicant/wpa_supplicant.conf
# then:
# ifdown wlan0; ifup wlan0
# where `wlan0` is the name of your interface as found above.
After changing the file you need a reboot. Could it be that you also made some changes to the DHCP in /etc/dhcp/dhcp.conf that you need to reverse?