There currently is one option to travel by night train from Bacau (Romania) to Ungheni (Moldova), taking approximately 4 hours: Namely the 402 operated by CFR Călători.
CFR Călători, the passenger arm of Romania's national railway, operates trains throughout Romania and cross-border services to Hungary and Austria, among them night trains.