I need to allow the users of Google Documents write only in the rows, that are assigned to them. Is there any way to prevent writing to lines that do not belong to the user?
Unlike Sheets, there's no way to protect specific parts of Google Docs.
If you are interested in this, I'd suggest you to request this feature by clicking Help > Help Docs improve
on the Docs editor.