U(1) flavor symmetry and proton decay in supersymmetric standard model