Dual roles of HSP70 chaperone HSPA1 in quality control of nascent and newly synthesized proteins