Matthew Barzal recorded a goal and an assist and Marcus Hogberg made 18 saves to pick up his second win of the season as the New York Islanders defeated the San Jose Sharks 4-1.