Is the word assign written with the silent letter g?

Yes. The G is silent but indicates that the i has a long i sound (aye). Similar words that have the "ine" sound are align (uh-line) and benign (bih-nine).