Recording by angels does not imply that Allah was unaware of deeds before they were written.

The Weighing, the Record, and the Questioning on Judgment Day