Additonal I2C port not outputing 5v if MKR1310 is powered from the VIN pin

Posting an annotated schematic would help us help you. Be sure to show all power, ground, power souorces and any other hardware involved.