Warriors hold on despite big third quarter from Nets